
#include <iostream>
using namespace std;

#include "app/CAppControl.h"
#include "hal/CHalControl.h"
#include "drv/CDrvControl.h"


int main()
{

    CDrvControl* itsDrvControl = new CDrvControl();
    CHalControl* itsHalControl = new CHalControl();
    CAppControl* itsAppControl = new CAppControl();


    if (false == itsDrvControl->init())
    {
        cout << "ERROR init itsDrvControl" << endl;
    }

    if (false == itsHalControl->init())
    {
        cout << "ERROR init itsHalControl" << endl;
    }

    if (false == itsAppControl->init())
    {
        cout << "ERROR init itsAppControl" << endl;
    }


    itsDrvControl->run();

    itsHalControl->run();

    itsAppControl->run();


    delete itsDrvControl;
    delete itsHalControl;
    delete itsAppControl;

    return 0;
}
